<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>用户中心</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="keywords" content="">
  <meta name="description" content="">
  {include file="public/css"}
   <!-- 编辑器源码文件 -->
{load href="__PLUGIN__/ueditor/ueditor.config.js" /}
{load href="__PLUGIN__/ueditor/ueditor.all.js" /}
{load href="__PLUGIN__/ueditor/lang/zh-cn/zh-cn.js" /}
</head>
<body>

<!-- 头部开始 -->
{include file="public/header"}
<!-- 头部结束 -->


<div class="layui-main fly-marginTop fly-user-main ">

<div class="user-left-menu" style=""> 

<!-- 用户中心导航菜单 -->
{include file="public/left_menu"}
</div>
        <div class="fly-panel fly-panel-user user-right-content" pad20>

        <div class="layui-tab layui-tab-brief" lay-filter="user">

          <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
            <ul class="layui-tab-title">
                <li ><a href="{:url('@user/guarantee/info')}">所有信息</a></li>
              <li class="layui-this">信息修改</li>
            </ul>
          </div>  

          <form class="layui-form" action="">
            <input name="id" type="hidden" value="{$Request.param.id}">
              <div class="layui-form-item">
                <label class="layui-form-label">信息标题</label>
                <div class="layui-input-inline" style="width:400px">
                  <input type="text" name="title" maxlength="60" value="{$info.title}" placeholder="" autocomplete="off" class="layui-input">
                </div>
              </div>
              <div class="layui-form-item">
                  <label class="layui-form-label">预算价格</label>
                  <div class="layui-input-inline" style="width:100px">
                    <input type="text" name="price" maxlength="13" value="{$info.price}"  placeholder="" autocomplete="off" class="layui-input">
                  </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">内容</label>
                    <div class="layui-input-block">
                        {form:ueditor name="content" value="htmlspecialchars_decode($info['content'])" /}
                    </div>
                  </div>

              <div class="layui-form-item">
                  <div class="layui-input-block">
                    <button class="layui-btn layui-btn-normal" lay-submit lay-filter="form">确定</button>
          
                  </div>
                </div>
              </form>

           </div>
           </div>
        </div>
        </div>
    
</div>
{include file="public/js"}
<!-- 会员底部文件 -->
{include file="public/footer"}



<script>

layui.use(['form'], function(){
  var form = layui.form;
   
   form.on('submit(form)',function(data){
      $.post('{:url("guarantee/infoEdit")}',data.field,function(json){
       if(json.code == 0){
           layer.msg(json.msg);  
           location.reload();
       }else{
           layer.msg(json.msg);
       }
    });
    return false; 
   });

});
</script>

</body>
</html>